package com.example.cognitivesystemserver.service;

import com.example.cognitivesystemserver.mapper.WarringMapper;
import com.example.cognitivesystemserver.pojo.WarringResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarringServiceImpl implements WarringService{
    @Autowired
    private WarringMapper warring;

    @Override
    public WarringResult getWarringRes(String StuId) {
        return this.warring.getWarringRes(StuId);
    }

    @Override
    public List<WarringResult> getAllWarring() {
        return this.warring.getAllWarring();
    }
}
